﻿using DbcParserLib;
using DbcParserLib.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataWorks_Tools.DBC.DBCMessage
{
    /// <summary>
    /// 用于解析dbc文件的类
    /// </summary>
    public static class DBCMessage
    {
        public static Message[]? DBCMessageReader(this string dbcpath)
        {
            Dbc dbc = Parser.ParseFromPath(dbcpath);
            var filteredSelection = dbc.Messages.ToArray();
            return filteredSelection;
        }

    }
}
